<%@page import="edu.tsinghua.eea.powermanagementserver.model.DBInterface"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page session="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>用户登录</title>
</head>
<body>
<jsp:include page="admin/server_message.jsp"></jsp:include>
<table width="300" border="0">
  <tr>
    <th scope="col"><div align="left">用户登录</div></th>
  </tr>
  <tr>
    <td><form id="form1" name="form1" method="post" action="dbcon">
        <table width="220" border="0">
		<tr >
			<td width="100"><span>用户名:</span></td>
			<td width="148"><input name="un" type="text" size="20"/></td>
		</tr>
		<tr>
			<td width="100"><span>密码：</span></td>
			<td width="148"><input name="pwd" type="password" size="20"/></td>
		</tr>
	</table>
	<input type="hidden" name="action" value="<%=DBInterface.ACTION_LOGIN%>" />
	<input type="submit" value="登录" />	
    </form></td>
  </tr>
  <tr>
  	<td>
  		<form id="form1" name="form2" method="post" action="dbcon">
			<table width="220" border="0">
				<tr style='height: 10px;'></tr>
				<tr>
					<td width="300"><span>用户名:</span></td>
					<td width="148"><input name="new_un" type="text" size="20" /></td>
				</tr>
				<tr>
					<td width="300"><span>密码：</span></td>
					<td width="148"><input name="new_pwd1" type="password" size="20" /></td>
				</tr>
				<tr>
					<td width="300"><span>再次输入密码：</span></td>
					<td width="148"><input name="new_pwd2" type="password" size="20" /></td>
				</tr>
			</table>
			<input type="hidden" name="action" value="<%=DBInterface.ACTION_NEW_USER%>" /> 
			<input type="submit" value="注册新用户" />
		</form>
	</td>
  </tr>
</table>
</body>
</html>
